package com.guoxin.chapter3.join.joinsleep1;

/**
 * @author guoxin
 * @date 2019年8月23日
 */
public class ThreadA extends Thread{
	private ThreadB threadB;

	public ThreadA(ThreadB threadB) {
		super();
		this.threadB = threadB;
	}
	
	@Override
	public void run() {
		 try {
			synchronized (threadB) {
				 threadB.start();
				 Thread.sleep(6000);
			}
		} catch (InterruptedException e) {
			e.printStackTrace();
		}
	}
}
